package com.alphaking.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "newuser")
public class User implements java.io.Serializable {

	// Fields

	private Long userId;
	private String userNickname;
	private String userHeadPortrait;
	private String account;
	private String password;

	/** default constructor */
	public User() {
	}

	public User(String userNickname, String userHeadPortrait, String account, String password) {
		super();
		this.userNickname = userNickname;
		this.userHeadPortrait = userHeadPortrait;
		this.account = account;
		this.password = password;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "user_id", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "user_nickname", length = 256)
	public String getUserNickname() {
		return this.userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	@Column(name = "user_head_portrait", length = 256)
	public String getUserHeadPortrait() {
		return this.userHeadPortrait;
	}

	public void setUserHeadPortrait(String userHeadPortrait) {
		this.userHeadPortrait = userHeadPortrait;
	}


	@Column(name = "user_account")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name = "user_passwd")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}